package me.shiqiang.im.microservice.impl;

import com.tst.common.MessageReader;
import com.tst.common.returnobj.ReturnObjCode;
import me.shiqiang.im.microservice.DistributorMicroService;
import me.shiqiang.im.microservice.returnobj.UserKeyReturnObj;
import me.shiqiang.im.microservice.returnobj.UserKeysReturnObj;
import me.shiqiang.im.microservice.returnobj.UsersInfoPagerReturnObj;
import org.springframework.stereotype.Component;

/**
 * Created by John on 2018/1/2.
 */
@Component
public class DistributorMicroServiceHyStrix implements DistributorMicroService {

    @Override
    public UserKeysReturnObj fetchDirectUserkeys(int currentPage, int pageSize, String parentUserKey) {
        return new UserKeysReturnObj(ReturnObjCode.SERVICE_FUSING, MessageReader.getMessage("msg.microService.distributorQuery.fusing"), null);
    }

    @Override
    public UserKeyReturnObj fetchParentUserKey(String uuid) {
        return new UserKeyReturnObj(ReturnObjCode.SERVICE_FUSING, MessageReader.getMessage("msg.microService.distributorQuery.fusing"), null);
    }

    @Override
    public UsersInfoPagerReturnObj fetchUsersByDate(int currentPage, int pageSize, int birthYearStart, int birthYearEnd, String familyCode, String joinDateStart, String joinDateEnd) {
        return new UsersInfoPagerReturnObj(ReturnObjCode.SERVICE_FUSING, MessageReader.getMessage("msg.microService.distributorQuery.fusing"), null);
    }

}
